﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _03.AnimalHierarchy
{
    public class Frog : Animal
    {
        public Frog(int age, string name, string sex)
            : base(age, name, sex)
        { 
        }

        public override string ToString()
        {
            return string.Format("This is a frog");
        }

        public override void ProduceSound()
        {
            Console.WriteLine("Kvak");
        }

    }
}
